import request from "@/utils/request";

// 创建展厅
export const createShowroom = data => {
  return request({
    url: "/purchase/api/cpaBusinessShowroom/createShowroom",
    method: "post",
    data
  });
};

// 地理编码
export const inputtips = query => {
  return request({
    url: "/dbo/region/search",
    method: "get",
    params: query
  });
};

// 商品列表
export const cpaShopCategoryDict = query => {
  return request({
    url: "/purchase/api/cpaShopCategoryDict/list",
    method: "get",
    params: query
  });
};

// 获取详情
export const getShowroomDetail = query => {
  return request({
    url: "/purchase/api/cpaBusinessShowroom/getShowroomDetail",
    method: "get",
    params: query
  });
};

// 修改展厅
export const modifyShowroom = data => {
  return request({
    url: "/purchase/api/cpaBusinessShowroomManage/modifyShowroom",
    method: "post",
    data
  });
};
